#-------------------------------------------------
#
# Project created by QtCreator 2016-12-03T11:20:14
#
#-------------------------------------------------

QT       +=  websockets
QT       +=  widgets
QT       +=  xml

TARGET = EcatIgh
TEMPLATE = lib

DEFINES += ECATIGH_LIBRARY
CONFIG += staticlib
CONFIG +=c++11
DESTDIR =/agvwork/AgvFundation/fundation/lib

INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD

SOURCES +=  $$PWD/ecatmasterigh.cpp
HEADERS +=  $$PWD/ecatmasterigh.h \


#INCLUDEPATH += /usr/ethercat-1.5.2/include/
#DEPENDPATH += /usr/ethercat-1.5.2/include/



### xenomai
#DEFINES += D_USE_XENOMAI
#INCLUDEPATH += /usr/xenomai/include/
#INCLUDEPATH += /usr/xenomai/include/native
#INCLUDEPATH += /usr/xenomai/include/rtdm
#INCLUDEPATH += /usr/xenomai/include/posix

#DEPENDPATH += /usr/xenomai/include
#DEPENDPATH += /usr/xenomai/include/posix
#DEPENDPATH += /usr/xenomai/include/native
#DEPENDPATH += /usr/xenomai/include/rtdm

#LIBS += -L/usr/ethercat-1.5.2/lib/ -lethercat_rtdm
#LIBS += -L/usr/xemomai/lib/ -lxenomai
#LIBS += -L/usr/xemomai/lib/ -lnative
#LIBS += -L/usr/xenomai/lib/ -lrtdm

#LIBS += -Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib -lpthread_rt -lxenomai -lrt -lpthread
###end#  xenomai


## rt-preempt
DEFINES += D_USE_RT_PREEMPT
#LIBS += -L/usr/ethercat-1.5.2/lib/ -lethercat
LIBS += -lrt -lpthread
##end#  rt-preempt

INCLUDEPATH +=../EcatCore
INCLUDEPATH += igh/
INCLUDEPATH += acontis/
INCLUDEPATH +=../CoordinateModule/
INCLUDEPATH +=../AxisObject/

INCLUDEPATH +=../ProgramSet
INCLUDEPATH +=../LogicalInstruction

INCLUDEPATH +=../EcatCore
LIBS += -L../../lib -lEcatCore
INCLUDEPATH +=../DomParser
LIBS += -L../../lib -lDomParser
INCLUDEPATH +=../Md5Check
LIBS += -L../../lib -lMd5Check
INCLUDEPATH +=../HmiGsoapQt
LIBS += -L../../lib -lHmiGsoapQt
INCLUDEPATH +=../VrepRemoteControlor
LIBS += -L../../lib -lVrepRemoteControlor
INCLUDEPATH +=../WebServer
#LIBS += -L../../lib -lWebServer
#INCLUDEPATH +=../Coordinate
#LIBS += -L../../lib -lCoordinate
INCLUDEPATH +=../PointData
#LIBS += -L../../lib -lPointData
INCLUDEPATH +=../MessageLog
LIBS += -L../../lib -lMessageLog

#LIBS += -L../../lib -lInternalSafe

#LIBS += -L../../lib -lJointDecouple
INCLUDEPATH +=../MotorInterface
#LIBS += -L../../lib -lMotorInterface

#LIBS += -L../../lib -lPalletCalculate

#LIBS += -L../../lib -lControlLoop
INCLUDEPATH +=../RegData
#LIBS += -L../../lib -lRegData

#LIBS += -L../../lib -lTrajectoryScale
INCLUDEPATH += ../../include/actions/INC
INCLUDEPATH += ../../include/actions/INC/Linux
INCLUDEPATH += ../../include/ethercat-igh
INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/MacroDefine
#INCLUDEPATH += ../../include/alLib
#INCLUDEPATH += /usr/local/include/kdl

LIBS += -L../../lib -lMotionServer

INCLUDEPATH +=../MotionServer

INCLUDEPATH +=../MotionServer/Axis/
#INCLUDEPATH +=../Axis

INCLUDEPATH +=../PowerManager
LIBS += -L../../lib -lPowerManager
INCLUDEPATH +=../MeasureTime
LIBS += -L../../lib -lMeasureTime
INCLUDEPATH +=../RobotManager
LIBS += -L../../lib -lRobotManager
INCLUDEPATH +=../RobotEngine
LIBS += -L../../lib -lRobotEngine

INCLUDEPATH += /usr/local/include/kdl

INCLUDEPATH += ../XmlParse
LIBS += -L../../lib -lXmlParse

INCLUDEPATH +=../ModbusDevice

INCLUDEPATH += /usr/local/include/modbus/



#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS #为什么其它库pro也要定义这个才起作用。


contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
}
contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")

}
contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
}



contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR =/agvwork/AgvFundation/fundation/lib/x86_WINDOWS
#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory_windows
MOC_DIR +=../../build/tmpBuildDirectory_windows
OBJECTS_DIR += ../../build/tmpBuildDirectory_windows
RCC_DIR += ../../build/tmpBuildDirectory_windows
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR =/agvwork/AgvFundation/fundation/lib

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory
MOC_DIR +=../../build/tmpBuildDirectory
OBJECTS_DIR += ../../build/tmpBuildDirectory
RCC_DIR += ../../build/tmpBuildDirectory
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR =/agvwork/AgvFundation/fundation/lib-arm

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory_arm
MOC_DIR +=../../build/tmpBuildDirectory_arm
OBJECTS_DIR += ../../build/tmpBuildDirectory_arm
RCC_DIR += ../../build/tmpBuildDirectory_arm
}


